package net.sxnic.jhitem.itemannex;

import java.util.List;

import net.sxnic.jhitem.itemannex.ItemAnnex;
import net.sxnic.jhitem.itemannex.dao.ItemAnnexDao;
import net.sxinfo.core.spring25.Dao;
import net.sxinfo.core.spring25.DefaultManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("itemAnnexManager")
public class DefaultItemAnnexManager extends DefaultManager<ItemAnnex,ItemAnnexDao,String>
		implements ItemAnnexManager{

	@Autowired
	private ItemAnnexDao itemAnnexDao;
	@Override
	protected Dao<ItemAnnex, String> getEntityDao() {
		return itemAnnexDao;
	}
	
	/**
	 * 根据主表id和附件类别查询附件表
	 * @param fileSort 附件类别 
	 * @param baseinfoId 主表ID
	 * @return 附件List
	 */
	public List<ItemAnnex> findListByFileSort(String fileSort,String baseinfoId)
	{
		return itemAnnexDao.findListByFileSort(fileSort, baseinfoId);
	}
}
